>>339
//List版
if (rtObj instanceof boolean[]) {
  boolean[] pa = (boolean[])rtObj;
  Boolean[] wa = new Boolean[pa.length];
  for (int i = 0; i < pa.length; i++) wa[i] = Boolean.valueOf(pa[i]);
  rtObj = Arrays.asList(wa);
} else (rtObj instanceof int[]) {
//以下延々と続く……

//文字列版
if (rtObj instanceof boolean[]) {
  boolean[] a = (boolean[])rtObj;
  StringBuilder sb = new StringBuilder("[");
  for (int i = 0; i < a.length - 1; i++) sb.append(a[i]).append(", ");
  if (0 < a.length) sb.append(a[a.length - 1]);
  sb.append("]");
  rtObj = sb;
} else (rtObj instanceof int[]) {
//以下延々と続く……