fix issue 10359 - Pointer slicing allowed in @safe mode