<p>I've got a byte() array returned as result of directx sound capture, but for other parts of my program I want to treat the results as single(). Is trundling down the array item by item the fastest way of doing it or is there a clever way to do it ? </p>

<p>The code that gets it is</p>

<pre><code>CType(Me._applicationBuffer.Read(Me._nextCaptureOffset, GetType(Byte), LockFlag.None, LockSize), Byte())
</code></pre>

<p>which creates the byte array, can Ctype handle single ? (note, I can't figure out a way to  do it!)</p>

Try
```
```
float f = BitConverter.ToSingle(bytearray, 0);
```
```
In VB (I think):
```
```
Dim single s;
s = BitConverter.ToSingle(bytearray, 0);
```
```