Casting pointer to void* so that arithmetic can be done.