title: Read double from void * buffer
body: <p>Please excuse my lack of understanding, I'm a beginner with C. So, I have a <code>void *</code> buffer that I <code>calloc</code> like this:</p>
  
  <p><code>void * dataBuffer = calloc(samples, sizeof(double));</code></p>
  
  <p>and would like to later read it like this:</p>
  
  <p><code>double myDoubleDB = dataBuffer[sampleIndex];</code></p>
  
  <p>but I get an error because they are of different types (void and double).</p>
  
  <p>How can I achieve this? My arch is ARM and I'm using GCC to compile</p>
  
  <p>UPDATE: <code>dataBuffer</code> is out of my reach (other library) and it simply comes as <code>void *</code></p>