From: "Kumar R." Date: 2013-03-10T04:56:42+09:00 Subject: type casting and connversion in ruby In programming world type casting and type conversion has completely different meaning we all know. Now in ruby's world which it supports? Does ruby supports both or either of them? With the below code what it did - casting or conversion? "12".to_i #=> 12 "abc12".to_i #=> 0 "12".to_i.class #=> Fixnum "abc12".to_i.class #=> Fixnum 12.to_s.class #=> String If it supports both as like C then please provide me some examples for casting and conversion too. -- Posted via http://www.ruby-forum.com/.