While developing my application i came across some comparison stuff here was it:
string str = \"12345\";
int j = 12345;
if (str == j.ToString())
Well for starters the first one which converts the int to a string won't throw an error if the string the int is being compared to isn't convertible to an int.
If you are doing a lot of tests in a batch converting to a string will remove the problem of potentially having exceptions throw, because of conversion errors. Raising exceptions takes time and would slow down the second test.