Convert a named list to an S4 object
list_to_s4(list, class)
list
class
character vector indicating the S4 class
S4 object of class class.