Using Take() to grab bytes out of a byte array, having trouble converting back to byte[] after the Take()
<pre><code>byte[] result = memStream.ToArray();                              
memStream.Close();
byte[] temp = result.Take(255);
var str = System.Text.Encoding.Default.GetString(temp);
</code></pre>

<p>The above fails on the <code>result.Take(255);</code> line. It says I can't convert <code>IEnumerable</code> to <code>byte[]</code>, and asks if I'm missing a cast.</p>

<p>I'm new to C#, not exactly sure what to do.</p>