adding shared code to convert raw strings values to java primitives/objects