how to take an array from a DB

If I have a resultset I can use the method .getArray(int) to get an SQL array corresponding to the (int) column. And if I use the method .Array() to the SQLArray I got an Object that represente the Java-array.

But what I must do to convert this Object to an int[] or a String[]?

if I made

Object dati = resultset.getArray(1).getArray

it throws an exception java.lang.UnsupportedOperationException

but if I use

String [] dati = resultset.getArray(1).getArray

the JBuilder5 give me: incompatible types; found: java.lang.Object, required: java.lang.String[] at line 75, column 48

[641 byte] By [aranar] at [2007-9-26 7:05:41]
# 1
Try this:String[] myStrings = (String[])resultset.getArray(1).getArray();Typecasting to the proper type is needed.
mc717990 at 2007-7-1 16:45:04 > top of Java-index,Core,Core APIs...
# 2
and how do you set an array?Thanks!Tobi
superoverdrive at 2007-7-1 16:45:04 > top of Java-index,Core,Core APIs...