CfNodeRef.as

T as(T)() const @safe pure nothrow

Type-safe value extraction.

Converts the node's value to the requested type. For incompatible types or invalid references, returns the type's .init value.