Could you perhaps store instead the manifest or something for the type to parse to?