CS-19072: got rid of unneeded type casting when apply pagination to different resources