any of the two ways are ok this one to
float FloatNumb = 35.234;
int32 IntNumb = (int32)FloatNumb;
but the cast will always “floor” the float value, it can be 1,99 after the cast it will become 1 not 2 so. But as long as you don’t mind everything is fine