# File lib/dm-core/property/decimal.rb, line 33 def typecast_to_primitive(value) if value.kind_of?(::Integer) # TODO: remove this case when Integer#to_d added by extlib value.to_s.to_d else typecast_to_numeric(value, :to_d) end end