Revised DeserializeTypes class to compile and run properly