While developing my application i came across some comparison stuff here was it:
string str = \"12345\"; int j = 12345; if (str == j.ToString())
I prefer i.ToString() == str since nothing guarantees that Convert.ToInt32(str) doesn't fail.
i.ToString() == str
Convert.ToInt32(str)