convert an a named list to S4 object
convertListToS4(list, class)
character vector indicating S4 class
list