title: Converting dynamic C# objects to array
body: <p>Is there a way to convert a dynamic object to an array if it is either a single object of type Foo or Foo[] ?</p>
  
  <p>For example,</p>
  
  <p>if dynamic is Foo then convert to Foo[] with 1 object in array</p>
  
  <p>if dynamic is an array Foo[] with n number of objects then convert to Foo[] with n number of objects in array.</p>