Warning: use of old-style cast

I'm trying to convert my C code to C++, but i get this warning for the following expressions:

What is the new-style cast for these lines of code?