Cast modified data to float

Numeric datatypes are returned as string from database.
Cast modified data to float to make sure they are returned according to
the specification [1].
This is important for strict parsers such as Firefox Mobile on Android, see owncloud/app#826

[1] http://docs.services.mozilla.com/storage/apis-1.1.html#id2