Better public class conversion for JSON-standard types