title: C language cast void pointer by known size
body: <p>Simple question, can we in c language cast void pointer by known size by unknown data type?</p>
  
  <p>Consider this situation:</p>
  
  <p>function <strong>assertEqual</strong>, which should get 2 pointers as arguments, dereference them and equal value. You can't of course dereference void pointer, but what if I know size of data, which the pointer point to? Can I create some dynamic pointer of known size but unknown data type? The function should looks like <strong>assertEqual(void* expected, void* current, size_t size)</strong>.</p>