BLUE : Made a toInteger Function