[changed] to toInt where possible