Casting all cases of void*