title: Assign null to decimal using ternary operator
body: <p>I am using conversion to <code>decimal</code> of a <code>byte array</code>, such that it contains either <code>null</code> or any other number, stored in byte. The problem here is, when I try to convert a <code>null</code> to <code>Nullable decimal</code>, it converts it to <code>zero</code>. I want it to remain <code>null</code>...</p>
  
  <pre><code>Convert.ToDecimal(obj.sal== null ? null : System.Text.Encoding.ASCII.GetString(obj.sal))
  </code></pre>