Reject non-integral floats passed to to_int