>>32
> CFirst* pF = (CFirst*) pThirdObject;

CFirst* pF = pThirdObject;

で済むのだが・・・