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

function rb_to_integer

[edit]
static VALUE rb_to_integer(VALUE val, char *method)