fixed issue with field types of float or decimal not being casted correctly