Casting the iterations variable to integer