A type conversion occurs automatically when an expression mixes two different data types. QuickC converts the lower-ranking type to the higher-ranking type before it performs the specified operation.
You can also “cast” (manually convert) a value to any type by placing the de-sired type name in parentheses in front of the value. The example below casts the value of sample to type float and assigns the value to x:
int sample;
float x;
x = (float)sample;