explicitly make sure the page number is a number type