Hello,
I am looking for a way to cast a byte[] to Int16[].
I get this error:
"Unable to cast object of type 'System.Byte[]' to type 'System.Int16[]'"
If you're curious, I am using a library for accessing some specialized
image types. It seems I am returned an array of object's (declared as
object[], usually casted to Int16). However, some images seem to have
byte data not int16.
Any advice would be appreciated. I have been looking around the net and
it seems byte can be implicitly and explicitly cast to Int16. Why is
this not true for an array?
Thanks for all of your advice in advice,
Lint Radley