from converted to To.
$(D_PSYMBOL ConvException) if from doesn't contain an integral value.
assert("1234".to!uint() == 1234); assert("1234".to!int() == 1234); assert("1234".to!int() == 1234); assert("0".to!int() == 0); assert("-0".to!int() == 0); assert("0x10".to!int() == 16); assert("0X10".to!int() == 16); assert("-0x10".to!int() == -16); assert("0b10".to!int() == 2); assert("0B10".to!int() == 2); assert("-0b10".to!int() == -2); assert("010".to!int() == 8); assert("-010".to!int() == -8); assert("-128".to!byte == cast(byte) -128);
Converts a stringish range to an integral value.