how to type cast from void to int* code example Example: convert void * to int int a = 5; void *p = (void *)a; int b = (int)p;