I need to get byte values from an object into a byte[] in order to write the
bytes to file.
An object (vSound) is passed to a function.
From the Autos window I can see that the Value of vSound is {System.Array}
and the Type is {System.Object}.
vSound has no properties or methods that allow you to get access to the byte
values.
When I type
?vSound
in the command window, I get:
{System.Array}
[1]: 36
[2]: 0
[3]: 8
[4]: 0
[5]: 220
....
[800]: 5
I can't figure out how to legally cast the object to a byte array.
I tried
byte[] mybyte;
mybyte = (Byte[]) vSound;
Any ideas? Thanks.