title: void pointer to vector elements
body: <p>I want to have a void pointer to a vector.</p>
  
  <pre><code>void *para;
  vector&lt;double&gt; x(2);
  x[0] = 0;
  x[1] = 1;
  para = &amp;x;
  </code></pre>
  
  <p>I can now use the vector like this.</p>
  
  <pre><code>vector&lt;double&gt; k = *(static_cast&lt;vector&lt;double&gt;*&gt;(para));
  cout &lt;&lt; k[0] &lt;&lt; "\n";
  </code></pre>
  
  <p>Now I want to access the elements of the vectors through the pointer. How can I do that? But now I want to get the elements of the vector x, directly via the void pointer para, without using the new vector k. Something like this:</p>
  
  <pre><code>double k = ??? // here should be the element of x via para
  </code></pre>
  
  <p>Thank's in advance.</p>