What I then do, when reading, is use the slot type (integer, etc.) to convert. That part is actually simple.
dim: I'll check, that's likely much more robust
As it is it is working, minus the type conversion which has to be done "manually". No big problem for my purposes, but if there is a better way I'll investigate it