unsafeCast

down cast of a reference to a child class reference runtime check is disabled in release build

  1. U unsafeCast(T obj)
  2. const(U) unsafeCast(const(T) obj)
    const(U)
    unsafeCast
    (
    U
    T
    )
    (
    const(T) obj
    )
    if (
    (
    is(T == class) ||
    is(T == interface)
    )
    &&
    (
    is(U == class) ||
    is(U == interface)
    )
    &&
    is(U : T)
    )

Meta