Casting in C is done by placing the desired type in front of the variable name in brackets.
e.g.,. to cast a byte as a float:
floatVar = (float)byteVar;
Or to cast a float as an integer:
intVar = (int)floatVar;
Of course, if the target type isn't big enough to contain all of the source type, then you may loose data.
It's especially useful in calculations:
floatVar = (float)byteVar / (float)intVar;