Typecasted contextmenu in menuitems