Casting page to an integer