If the source type From and the target type To are equal, does nothing. If From can be implicitly converted to To, just returns from.
Target type.
from.
auto val = 5.to!int(); assert(val == 5); static assert(is(typeof(val) == int));
See Implementation
If the source type From and the target type To are equal, does nothing. If From can be implicitly converted to To, just returns from.