refactor(*): rename internal function `int` to `toInt`

Renamed the internal function `int` to `toInt` as `int` is a reserved word

Closes #7768
docs(input): fix typo

Fix a typo on an example from the `input` directive