Using this
int MyIntValue;
float MyFloatValue = 1.53;
MyIntValue = Convert::ToInt32(MyFloatValue);
Will result in MyIntValue = 2, because Convert::ToInt rounds to the nearest value. To force rounding down use:
MyIntValue = (int)Math.Floor(MyFloatValue);
