ByteArrayOutputStream - get bytes from string : <p>How can I get similar result</p>

<pre><code>OutputStream outputStream = new ByteArrayOutputStream("asd".bytes())
</code></pre>

<p>this code don't compile</p>
