Fun with generics: mapping a generic instance from a non-generic reference
DDD can lead to dealing with non-generic references to generic instances of types. Generically mapping these instances or generically calling code with them is not straightforward. I present how it can nonetheless be unobtrusively achieved with a general visitor-like pattern.