Fix C++ compilation error when if/else expression has extension class type.
Merge pull request #206 from nnemkin/cpp_condexpr_cast_fix

Fix C/C++ compilation error when if/else expression has extension class type.