title: Converting a string to uint8_t array in C++
body: <p>I want an std::string object (such as a name) to a uint8_t array in C++. The
  function <code>reinterpret_cast&lt;const uint8_t*&gt;</code> rejects my string. And since I'm coding using NS-3, some warnings are being interpreted as errors.</p>