better use graphicsitem_cast