Fixed Cast::toInteger() not accepting leading zeros