This function is a shortcut of one of the corresponding calls:
getVar(name).toInt()
getVar(scope, name).toInt()

See Also:

getVar(), toInt()