int to void* c

C
int y = *((int *) pointer);
int x = 10;
void *pointer = &x;

Source

Also in C: