I have a base class B and serveral derived classes D1, D2, D3 etc.
I created a template class T like this:
Public Class T(Of X)
Public Function GetDerived(Byref Base As B) as X
Return CType(Base, X)
I use the template class with D1 or D2 or, any other...