convert from dynamic values to Ruby objects