T qgraphicsitem_cast ( QGraphicsItem * item )
Returns the given item cast to type T if item is of type T; otherwise, 0 is returned.
Note: To make this function work correctly with custom items, reimplement the {QGraphicsItem::}{type()} function for each custom QGraphicsItem subclass.