conversion to c++