Casting int instead to call intval function