Thrown on conversion overflow errors.
import std.exception : assertThrown; assertThrown!ConvOverflowException(to!ubyte(1_000_000));
See Implementation
Thrown on conversion overflow errors.