This looks like this can be entirely safe, `as uint` can be used to cast `*T` to uint.