forced cast to integer to page index and size in pagination