I think `$this->request->getInt()` will work better here.