fixed casting problem with float fields

An object with a float field that had a value that could be an Integer
was failing to deserialize, due to an incorrect cast from Integer to
Float.
Merge pull request #3 from LawlKat/master

fixed casting problem with float fields