public static boolean isCastableToArray(Object o){
  if (isArray(o))   return true;
 else   if (o instanceof Struct) {
    Struct sct=(Struct)o;
    Iterator<Key> it=sct.keyIterator();
    while (it.hasNext()) {
      if (!isInteger(it.next(),false))       return false;
    }
    return true;
  }
  return false;
}

public static boolean isCastableToArray ( Object o ) { if ( isArray ( o ) ) return true ; else if ( o instanceof Struct ) { Struct sct = ( Struct ) o ; Iterator < Key > it = sct . keyIterator ( ) ; while ( it . hasNext ( ) ) { if ( ! isInteger ( it . next ( ) , false ) ) return false ; } return true ; } return false ; }
can this type be casted to a array
