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/apps#826

Fixes owncloud/apps#1263

[1] http://docs.services.mozilla.com/storage/apis-1.1.html#id2