title: How to cast a void pointer to a pointer when dereferencing?
body: <pre><code>int x = 5;
  int *xPtr = &amp;x;
  void **xPtrPtr = &amp;xPtr;
  printf("%d\n", *(int*)*xPtrPtr);
  </code></pre>
  
  <p>I have a void pointer pointing to an int pointer. What is the syntax for properly casting the void pointer when I want to dereference? The above code quits with:</p>
  
  <pre><code>error: invalid conversion from ‘int**’ to ‘void**’
  </code></pre>
  
  <p>Thank you!</p>