Function isIntable() and toInt()