to

Performs checked conversion from an integral type From to an integral type To.

Parameters

From

Source type.

To

Target type.

from From

Source value.

Return Value

Type: To

from converted to To.

Throws

$(D_PSYMBOL ConvException) if from is too small or too large to be represented by To.

Meta