2 int32s divided to make a float

I tried this, it did not like this. So, I figured just using the = would not work.
float testing = float(A/B); // A and B are int32s

I figured you had to convert the int32 to a float. Did not realize you could just = the int32 to be a float. Nice. Thanks again.