Value.as

Converts value to T type.

  1. T as [@property getter]
  2. T as [@property getter]
  3. T as [@property getter]
  4. T as [@property getter]
  5. T as [@property getter]
  6. T as [@property getter]
    struct Value
    @property @trusted
    T
    as
    (
    T
    )
    ()
    if (
    (
    isArray!T ||
    isInstanceOf!(Array, T)
    )
    &&
    !is(Unqual!T == enum)
    )
  7. T as [@property getter]
  8. Args as [@property setter]
  9. T as [@property getter]

Return Value

Type: T

converted value.

Throws

MessagePackException if type is mismatched.

NOTE: Current implementation uses cast.

Meta