fix issue 10359 - Pointer slicing allowed in @safe mode
Merge pull request #2226 from hpohl/10359

fix issue 10359 - Pointer slicing allowed in @safe mode