Cast `void *` to `char *` before performing pointer arithmetic