Solution
Type Cast: the function looks into memory and based on data type wired to the function represents the content of the memory in the way how the format should look.
Conversion: this sort of functions (
To Single Precision Float,
Number to Decimal String etc.) takes the value of the variable and changes its type to the type specified. That means that binary representation of the variable will change, but value will remain unchanged.
What exactly is happening on binary level is described in the image bellow. We have U32 as input and we
Type Cast the value to SGL and String and also Convert to these formats.
In the Boolean Representation you can see the difference of representation between original value, the Type Cast value and the Converted value.