title: static_cast from 'const char *' to 'void *' is not allowed
body: <p>In C++, I'm trying to print the address of a C-string but there seems to be some problem with my cast. I copied the code from a book but it just doesn't compile on my mac.</p>
  
  <pre><code>const char *const word = "hello";
  cout &lt;&lt; word &lt;&lt; endl; // Prints "hello"
  cout &lt;&lt; static_cast&lt; void * &gt;(word) &lt;&lt; endl;  // Prints address of word
  </code></pre>