Replaced as_string() with as<std::string>()