title: Convert an object that is an array to an array of objects
body: <p>How do you (in C#) convert an object that is an array to an array of objects</p>
  
  <p>Something in the following format:</p>
  
  <pre><code>bool Compare(object valueToCompare)
  {
     if(valueToCompare.IsArray())
     {
        foreach(var value in (valueToCompare as Array)){
            if(Compare(value));
               return true;
            return Compare(value);
        }
     }
     else
         return Compare(valueToCompare);
  }
  </code></pre>
  
  <p><strong>NOTE:</strong> The code above doesn't do much. I'm just prototyping.</p>