Okay another way of doing it, if we are using the new Java 1.8 Function interface, can be like this. This is based on a description on how we can do this functionally from http://www.leveluplunch.com/java/tutorials/016-transform-object-class-into-another-type-java8/
This class is the same as before, except we no longer need the constructor to do the conversion.
Again no custom constructor required here.
The conversion is now handled via this function which is implemented as an Anonymous Class. The logic for the conversion now takes place here.
And here is how we do the transform now.
Question is which one is better?