pagenumber typecasted to int