How to not convert double to int C#?
<p>Ok people let me try to clear the last itme. I have an object a and I want to check if its value is double, int or string.</p>

<p>For eg: - 
if object a = "12.3" or a = 12.3, it should be able to convert to double and throw while converting to int.
if object a = "12" or a = 12 or a = 12.0, it should be able to convert to int and throw while converting to double.</p>

<p>if object a="apple" it should throw for both double and int.</p>

<p>Hope I am clear this time. But Timwi's solution actually solved the problem for me. :-)</p>
