Type-erasing generics by using protocols to downcast generic parameter types

Generics in Swift do not support covariance.

1 Like