Cast Paginator::currentPage to an integer

Not a huge deal, but it ensures getCurrentPage() returns an int instead of a numeric string.

Sorry if this is the wrong branch, couldn't work out if I should be commiting on `master` or `4.0`.