RF: force int_to_float input to Python integer

It seems that there is some difference in the way that numpy outputs min
/ max values for integers, so that sometimes we were passing np.uint64
values, causing subtle or obvious errors when converting to floats.