title: Convert dynamic variable to string and check null or empty
body: <p>I have a method like this:</p>
  
  <pre><code>public void TestMethod(dynamic details)
  {
     string det = (string)Convert.ToType(details,typeof(string))
  
  }
  </code></pre>
  
  <p>I want to check String.IsNullOrEmpty(details). For this I need to convert it from object to string.</p>
  
  <p>I tried:</p>
  
  <pre><code>string det = (string)Convert.ToType(details,typeof(string))
  </code></pre>
  
  <p>It is throwing error: </p>
  
  <blockquote>
    <p>"Object must implement IConvertible"</p>
  </blockquote>
  
  <p>I cannot implement this interface in class as it is written by another team.</p>
  
  <p>Anyway to check "details" as null or empty?</p>