Switched to purely 1.6 compatibility

Apparently Java 1.7 has syntactic sugar for typecasting Objects directly
to floats, but 1.6 does not.