You don't. You use polymorphism. I.e., it's
claimObject
that has different behavior depending on its own type, not the convert
method.