@api semipublic
Typecast a value to an Integer
@param [to_str, to_i] value
value to typecast
@return [Integer]
Integer constructed from value
@api private
[Validate]