Cast import { Cast } from "destack:math"; Explicit lossy conversions between builtin integer types. as between numeric types is lossless-only; these methods pick the lossy behavior explicitly. export extension Cast { truncate(): U; saturate(): U; tryInto(): U | undefined; } language/library/src/math/cast.ds:16:31 Members truncate(): U Convert to U, keeping the low bits. saturate(): U Convert to U, clamping into the destination range. tryInto(): U | undefined Convert to U when the value is representable, or return undefined.