--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: typecasts values into a primitive (Ruby class that backs DataMapper property type). If property type can handle typecasting, it is delegated. How typecasting is perfomed, depends on the primitive of the type.
- !ruby/struct:SM::Flow::P 
  body: If type's primitive is a TrueClass, values of 1, t and true are casted to true.
- !ruby/struct:SM::Flow::P 
  body: For String primitive, <tt>to_s</tt> is called on value.
- !ruby/struct:SM::Flow::P 
  body: For Float primitive, <tt>to_f</tt> is called on value but only if value is a number otherwise value is returned.
- !ruby/struct:SM::Flow::P 
  body: For Integer primitive, <tt>to_i</tt> is called on value but only if value is a number, otherwise value is returned.
- !ruby/struct:SM::Flow::P 
  body: For BigDecimal primitive, <tt>to_d</tt> is called on value but only if value is a number, otherwise value is returned.
- !ruby/struct:SM::Flow::P 
  body: Casting to DateTime, Time and Date can handle both hashes with keys like :day or :hour and strings in format methods like Time.parse can handle.
- !ruby/struct:SM::Flow::P 
  body: "@param [#to_s, #to_f, #to_i, #to_d, Hash] value"
- !ruby/struct:SM::Flow::VERB 
  body: "  the value to typecast\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [rue, String, Float, Integer, BigDecimal, DateTime, Date, Time, Class]"
- !ruby/struct:SM::Flow::VERB 
  body: "  The typecasted <tt>value</tt>\n"
- !ruby/struct:SM::Flow::P 
  body: "@api semipublic"
full_name: DataMapper::Property#typecast
is_singleton: false
name: typecast
params: (value)
visibility: public
