def convert_properties_to(obj, medium, properties)
converter = medium == :ruby ? :to_ruby : :to_db
properties.each_pair do |attr, value|
next if skip_conversion?(obj, attr, value)
properties[attr] = converted_property(primitive_type(attr.to_sym), value, converter)
end
end