title: How to convert Oracle.ManagedDataAccess.Types.OracleString[] to System.String[]
body: <p>i'm using an Oracle procedure via c# with output parameter, which i'm creating this way:</p>
  
  <pre><code>            commandUpdate.Parameters.Add(new OracleParameter
              {
                  Direction = ParameterDirection.Output,
                  ParameterName = "NAME",
                  OracleDbType = OracleDbType.Varchar2,
                  CollectionType = OracleCollectionType.PLSQLAssociativeArray,
  
  
              });
              commandUpdate.Parameters["NAME"].Size = Size;
              commandUpdate.Parameters["NAME"].ArrayBindSize = new int[Size];
              for (int i = 0; i &lt; Size; i++)
              {
                  commandUpdate.Parameters["NAME"].ArrayBindSize[i] = 30;
              }
  </code></pre>
  
  <p>and then, after calling <code>commandUpdate.ExecuteNonQuery()</code> i'm trying to cast it to a string array:</p>
  
  <pre><code>string[] names = (string[])(commandUpdate.Parameters["NAME"].Value);
  </code></pre>
  
  <p>This brings me to an error <code>System.InvalidCastException</code>.</p>
  
  <p>I've tried to use <code>ToString()</code> somehow, but seems like it wouldn't work for arrays.</p>
  
  <p>So how can i cast this results to a string array?</p>