convertElement

private fnDst convertElement(Dst, S)(S e)

The single checked element-conversion primitive.

Parameters

Dstdestination element type (see isDstElem).
Sunqualified source element type.
ethe element value.

Returns

The converted element.

Throws

VarException for rejected conversions (range, exactness, kind);

VarTypeException never — kind problems are value problems here.