safe

Performs a safe conversion.

@property @safe
T
safe
(
T
E
)
()

Examples

assert(90.safe!ubyte == 90);
assert(256.safe!ubyte == 255);

Meta