Converting objects from A to B and back - there ought to be a library