change to __cast_value in attributes.rb in order to correctly cast Strings, Floats, and Integers to the defined property type