Reverted toInteger() to public again