pageList View Helper: cast number of pages to int

… to make === comparison work