DomNode.as

T * as(T)() @nogc nothrow pure @safe @trusted return

The struct that contains this node: DomElement, DomCharacterData, DomDocumentType, DomDocumentFragment or DomDocument. type must match (checked only by an assert).

const(T) * as(T)() @nogc nothrow pure @safe const @trusted return

ditto