Auto cast numeric values to Number and cast to datastore.Int if not floating.