Use case
There is old issue: #45
Main problem: ObjectMapper.treeToValue looks very similar to ObjectMapper.readValue but suffers from type erasure.
It is very simple to missuse it.
Current behaviour is because ObjectMapper.treeToValue(TreeNode, TypeReference) does not exist.
As suggested in FasterXML/jackson-databind#1294 we can use readValue or convertValue.
Describe the solution you'd like
Let's either:
- reimplement
ObjectMapper.treeToValue in type-safe way
- deprecate it with descriptive message