Added proper page object cast