On 01/30/2013 02:49 PM, Namespace wrote: > Is the compiler (dmd) fit enough to detect and avoid unnecessary casts? Also consider std.conv.to. The many speciliazions of toImpl() that it calls should do the safe and efficient thing. Ali