class ActiveModel::Type::Value

def deserialize(value)

+value+ The raw input, as provided from the database.

implementation just calls Value#cast.
ActiveRecord::AttributeMethods::Read#read_attribute. The default
return value of this method will be returned from
Converts a value from database input to the appropriate ruby type. The
def deserialize(value)
  cast(value)
end