module pind.samples.ja.cast_.cast_6; import std.conv; void main() { double d = -1.75; short s = to!short(d); assert(s == -1); int i = to!int("42"); assert(i == 42); }