> Try 'to_int' which is for that particular purpose, not 'to_i' which is > for explicit conversion to integer. And when you want something to be > string, try 'to_str'. Why is there a difference between to_i and to_int? Is it the principle of biggest surprise!? :-)