Removed the need for cast_page_instance_variable