For #29 converter now compiles
Implemented generics to allow for easy code reuse of message types #29