CdmNode.as
T as(T)() const @safeRetrieves the scalar value of this node as the requested type.
Supported types: bool, long, int, double, float, string, immutable(ubyte)[], Date, TimeOfDay, DateTime, Duration.
For Duration, the internal nanosecond count is converted back to a Duration using nsecs().
Parameters
T | The desired value type. |
Returns
The value converted to type T.
Throws
ConvException if this node's type does not match the
requested type.