title: how to convert char[] to byte[] without creating any intermediate String
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4931854/converting-char-array-into-byte-array-and-back-again">Converting char array into byte array and back again</a>  </p>
  </blockquote>
  
  
  
  <p>I have a password in <code>char[]</code> and i want this password in <code>byte[]</code> without creating any <code>String</code>. Please suggest the best possible way.</p>