Typecasting fix

Had an issue with decimal fields in database being returned by activerecord as a STRING. Was causing issues when not passing is_numeric() tests

type_cast_field($field, $value)
may need similar changes made to other numeric data types in this method.
Merge pull request #36 from damanic/master

Typecasting fix