I'm a little confused here.
As the other answers note, you are comparing apples and oranges. ::rimshot::
If you want to determine if an object has a specific type, use the operator is.
, == ( , - , ).
( ), , .
, ( , System.Object).
, , , . .NET C - , .
, , s "I'm a string", :
if (((object) s) == ((object) "I'm a string")) { ... }
, , s. , , , . , , . .