title: How to access array boolean value -- array required, but Object found
body: <p>I am having trouble accessing an array Boolean value such as the following...</p>
  
  <pre><code>boolean[][] sub = new boolean[][];
  Object[] record = new Object[];
  
  record[0] = sub;
  
  if ( record[0][0][1] == false )
  {
      // Do something
  }
  </code></pre>
  
  <p>When I set a watch, I get Type of boolean and value of false.
  The compiler gives an error of array required, but Object found.</p>
  
  <p>The record[] array is of type object but contains a <code>boolean[][]</code> array within each index. I have tried casting but it isn't working ( i.e. <code>(boolean)record[0][0][1]</code> ). Does anyone have ideas on how to access the boolean value?</p>