In the same vane of "ideal code snippets", this could remove the `unsafe` block?