SyntaxFix
Write A Post
Hire A Developer
Questions
I prefer to solve this in the classic way, creating a new array of my desired data type:
List<MyNewType> newArray = new ArrayList<>(); myOldArray.forEach(info -> newArray.add(objectMapper.convertValue(info, MyNewType.class)));