Type casting paginator current and last pages, so we can always check if we're on the last page with strict equality