master-coverity-FPGATrackSimBanks
Fix coverity defects: 19260, 19261, 19263 : unchecked dynamic cast (check the dynamic cast where a temporary casted ptr exists, use static_cast otherwise) 19258, 19259, 19262 : dereference of pointer after null check (exited with warning)
minor header cleanup also.