`_pages` is defined as `Vector<Widget*>`, So the `cast` is not needed.