Cast void* to char* for pointer arithmetic.