$pagination->toArray()
Returns the pagination object as an associative array.