Changing toInt to toInteger

toInt was considered reserved by some linters, hence the change.