Convert page number to integer