Truncated from (everything after the decimal point is dropped).
$(D_PSYMBOL ConvException) if from < To.min || from > To.max.
assert(1.5.to!int == 1); assert(2147483646.5.to!int == 2147483646); assert((-2147483647.5).to!int == -2147483647); assert(2147483646.5.to!uint == 2147483646);
Converts a floating point number to an integral type.