title: Unable to cast object of type 'DapperRow' to type 'System.String'
body: <p>I'm using Dapper to access database objects.</p>
  
  <p>So this line </p>
  
  <pre><code>Console.Write(string.Join(System.Environment.NewLine, results));
  </code></pre>
  
  <p>Gives me</p>
  
  <pre><code>{DapperRow, VALUE_A = 'Y', VALUE_B = 'Y'}
  </code></pre>
  
  <p>But i'd like to access or print these values like </p>
  
  <pre><code>DapperRow, 
  VALUE_A = 'Y'
  VALUE_B = 'Y'
  </code></pre>
  
  <p>But I am getting "System.InvalidCastException: Unable to cast object of type 'DapperRow' to type 'System.String'" with the following code. Where i am trying to use foreach to loop through this list.</p>
  
  <pre><code>using (var conn = new OracleConnection("Password=xxxxx;Persist Security Info=True;User ID=xxxxx;Data Source=xxxxx"))
  {
  // dapper adds an extension method to the connection for querying
  string sql = "SELECT X, Y FROM Z WHERE ABC = 123";
  var results = conn.Query(sql).ToList();
  Console.Write(string.Join(System.Environment.NewLine, results));
  
      foreach (string value in results)
      {
      Console.WriteLine("&gt; {0}",value);
      }
  }
  </code></pre>