title: Equality comparison of the datatype of two strings value in C#
body: <p>This is a weird requirement I have. I know even my question is quite confusing. Here is what I want to know.</p>
  
  <p>I've two string variables. I need to do equality comparison of the datatype of the underlying value in the string variables. For ex.</p>
  
  <pre><code>string firstVariable = "123"; // It contains integer value. i.e. I can convert it to integer value
  string secondVariable = "string" // It contains string value.
  </code></pre>
  
  <p>Now I need to compare whether datatype of the underlying values of these two strings are same. How can I do this?</p>
  
  <p><strong>Update:</strong> Thanks to all for the clarifications and answers. How about if I know the type of one variable?
  For ex:</p>
  
  <pre><code>int firstVariable;
  string secondVariable = "123". 
  </code></pre>
  
  <p>Is this possible to check whether the type of the first variable equals to converted value of the secondVariable. When I declared firstVariable as <code>int</code> it doesn't mean it is always <code>int</code> type. What I mean here is, I know the type of one variable and other variable is string and I want compare equality of the datatypes of firstvariable and value datatype of the secondVariable.</p>
  
  <p>Is <code>Convert.ChangeType</code> will anyway help in the above scenario?</p>
  
  <p>I know this is silly question, but out of curiosity in the language feature exploring, I wanted to know this.</p>