OpenFHE : a question about Plaintext

Hi,
I have a question regarding plaintexts in openfhe : once I decrypt and I get a Plaintext, how can I go back to a vector ?
Thanks !

Plaintext result;
context->Decrypt(key_pair.secretKey, c, &result);
//result->SetSlots(?);   //here you set how many slot you used
vector<double> v = result->GetRealPackedValue();

(I assume you are working with reals)

2 Likes