Cast Paginator::currentPage to an integer

Not a huge deal, but it ensures getCurrentPage() returns an int instead of a numeric string.
Merge pull request #1553 from danharper/patch-1

Cast Paginator::currentPage to an integer