A simple service for converting one type to another