list.toArray(), with no arguments, returns an Object[] array, not a testObj[] array.
If
Java allowed the cast you want to use, you would be able to do this:
and then arr[0] would contain a
String instead
of a testObj. That's a Bad Thing.
[ November 25, 2002: Message edited by: Ron Newman ]