Hello, mspath;
Type conversions (type-castings)are only necessary if you are accessing a variable that has been defined as a different type, origibally.
If you define a DB-variable of type REAL, you access it directly as a REAL.
Open your DBx, from Simatic Manager, S7 Program, Blocks. you will bw shown all defined variabes for that DB, with their names, addresses and data type. You can change the data type of these variables in the declaration view of the DB, and use them as required in your programs (be it through SCL, STL, Ladder....)
Hope this helps,
Daniel Chartier