add iskindof function to CObject