Deletion of a cast that is no longer needed due to the change of the ItemGroupPtr defition.