added IO#to_i
Merge pull request #496 from cptobvious/io-to_i

added IO#to_i