def convert_property(key, value, direction)
      converted_property(primitive_type(key.to_sym), value, direction)
    end
def convert_property(key, value, direction)
      converted_property(primitive_type(key.to_sym), value, direction)
    end
Converts a single property from its current format to its db- or Ruby-expected output type.
 @param [Symbol] key A property declared on the model
 @param value The value intended for conversion
 @param [Symbol] direction Either :to_ruby or :to_db, indicates the type of conversion to perform