Create common util for working with object types
Modify InsertMethylationfromRObject to use common types utility.