While developing my application i came across some comparison stuff here was it:
string str = \"12345\"; int j = 12345; if (str == j.ToString())
If performance is near identical, go with the version that is more readable.
Personally, I find the .ToString() approach to be easier to understand and less prone to possible casting issues that the other approach has.
.ToString()