Function fastCast

Derived fastCast(Derived, Base) (
  Base base
)
if ((is(Base == class) || is(Base == interface)) && is(Derived : Base));