cast the page limit to an int.