追記
(CFirst*) pF = (CFirst*) pThirdObject;
int value = pF->a;

は、MFCのCViewクラスから派生されたクラス内のメソッド内でインプリメントされたものです。