public static <T> List<T> transToList(Object data, Class<T> clazz) throws JsonProcessingException {
CollectionType collectionType = OBJECT_MAPPER.getTypeFactory().constructCollectionType(List.class, clazz);
String asString = OBJECT_MAPPER.writeValueAsString(data);
return OBJECT_MAPPER.readValue(asString, collectionType);
}