title: How to get the lowercase name of an object, even when null, in C#
body: <p>I have the C# method</p>
  
  <pre><code>private static string TypeNameLower(object o)
  {
     return o.GetType().Name.ToLower();
  }
  </code></pre>
  
  <p>to give me the lower case type name of the input object.</p>
  
  <p>But if input is a string set to null or a nullable int set to null then this method of course fails.</p>
  
  <p>How do I get the type name in this situation?</p>