# File lib/dm-core/property/decimal.rb, line 41 def typecast_to_primitive(value) if value.kind_of?(::Integer) value.to_s.to_d else typecast_to_numeric(value, :to_d) end end