title: Converting unsigned char * to char *
body: <p>here is my code:</p>
  
  <pre><code>std::vector&lt;unsigned char&gt; data;
  ... // put some data to data vector
  char* bytes= reinterpret_cast&lt;char*&gt;(imageData.data());
  </code></pre>
  
  <p>My problem is that in vector 'data' I have chars of value 255. After conversion in bytes pointer I have values of -1 instead of 255. How should I convert this data properly?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Ok, its come up that I really dont need conversion but only a bits order. THX for trying help</p>