VarTypeException if T is one of the datetime types (Date, TimeOfDay, DateTime, SysTime, Duration) and the stored type does not match exactly.T as(T)() const @safeConvert the stored value to type T.
Conversion rules:
Type.NULL, this returns T.init.std.conv.to.Type.ARRAY and T is var[], a copy of the underlying array is returned. If T is string, this returns the textual representation from toString().Type.OBJECT (map) and T is var[string], a copy of the underlying map is returned. If T is string, this returns the textual representation from toString().T.init. VarTypeException if T is one of the datetime types (Date, TimeOfDay, DateTime, SysTime, Duration) and the stored type does not match exactly.