cast floats to ints (probably losing precision