unsafeCast.unsafeCast

Undocumented in source. Be warned that the author may not have intended to support it.
  1. U unsafeCast(const(T) obj)
    template unsafeCast(U)
    @system
    U
    unsafeCast
    (
    T
    )
    (
    const(T) obj
    )
    if (
    (
    is(T == class) ||
    is(T == interface)
    )
    &&
    is(U : const(T))
    )
    if (
    is(U == const)
    )
  2. template unsafeCast(U)

Meta