Any chance to get a var() from PropertySet?

I stored a Binary-Data var() in PropertySet, but the way back seems not to be supported?

getValue() returns only a String, i need something like var() getValueAsVar()... 

 

PS:

Yes, i need to store a piece of unstructured binary data into a property-file..., and i have good reasons ;)

Yes, i could convert it into to String and back, but i think a var() performs better

 

 

It's all strings in the PropertySet class, I'm afraid. Maybe use a ValueTree or NamedValueSet instead?

Ah thanks, i didn't realized it is based on a string-based storage-class (i use PropertiesFile, which offers storeAsBinary-Format, so this could be unclear, if the algorithm depends on exact restoration (for example float<->string conversion inaccuracy)