Added more code for converting one data type to another. Still not 
updating editor type properly