I’m using a COM object that has a function called GetImage.
http://www.pdf-tools.com/asp/products.asp?name=P2IA
When I use it in Visual Studio 2008 it returns byte[], but when I use it in RAD Studio 2007 it returns System.Object. How can I get the data from the System.Object into a byte[]?
There is no data in an instance of Object itself. However since objects inherit from Object they may be referenced by an Object reference. To get data from the instance (assuming there is any) you have to cast the reference to the appropriate type.