Added "toInt" function.