Doesn't that return a std::string? if so you should store it as that and use that for the comparison.