title: How to convert const void* to unsigned int?
body: <p>So in this code:</p>
  
  <pre><code>unsigned int lptr = lua_topointer(L, -1);
  </code></pre>
  
  <p>It gives the error:
  cannot convert from 'const void *' to 'unsigned int'</p>
  
  <p>I have tried reinterpret_cast to convert it like this:</p>
  
  <pre><code>unsigned int lptr = reinterpret_cast&lt;const void*&gt;(lua_topointer(L, -1)));
  </code></pre>
  
  <p>but it gives me another error that says this:
  a value of type "const void*" cannot be used to initilize an entity of type "unsigned int"</p>
  
  <p>any help would be appreciated.</p>