added IO#to_i

to_i function for io objects.