Ruby 4.0 リファレンスマニュアル

instance method Integer#to_i

to_i -> self[permalink][rdoc][edit]
to_int -> self

self を返します。

p 10.to_i # => 10