Do not rely on implicit narrowing integral conversions
Merge pull request #3954 from yebblies/impconv

[DDMD] Do not rely on implicit narrowing integral conversions