On 01/30/2013 11:49 PM, Namespace wrote: > Is the compiler (dmd) fit enough to detect and avoid unnecessary casts? > ... Well, 'unnecessary casts' are a no-op anyway. (Yes, afaik DMD will even eliminate them from the AST.)