How float to binary conversion works
Literally nothing happens. The float is already in a binary representation; the cast merely tells the compiler that it should treat the 32 bits in the variable as a 32 bit unsigned integer instead of a single precision floating point value.