I have replaced the CStdString by a std::string. Didn't even require any casting :)