2014-05-28 キャスト cast C++ //古いやり方みたい↓ (CheckBox *)checkBox //or static_cast<CheckBox*>(checkBox->clone()); 他にもあるみたい。 dynamic_cast static_cast reinterpret_cast const_castこちらのブログがわかりやすかったー