(DPL) Snapshotting a string and getting an integer vector with input().get?

Can we in principle snapshot a string and get an integer array?

pc.outputs().snapshot(Output{ “TST”, “TEST2”, 0, Lifetime::Timeframe }, std::string);

auto Errorvec = ctx.inputs().get<std::vector>(“Error”);