rb_cstr2inum() seems to be slow, so we do the integer conversion by hand in simple cases.
This proved to be 40% faster.
Add the most simple use case for type casting to the README.