%description: Test the check_and_cast() function. %activity: // create a cPacket as cMessage cMessage *msg = new cPacket("packet"); // following ones should work cPacket *p1 = check_and_cast(msg); cMessage *p2 = check_and_cast(msg); cObject *p3 = check_and_cast(msg); ev << (p1!=NULL) << endl; ev << (p2!=NULL) << endl; ev << (p3!=NULL) << endl; %contains: stdout 1 1 1