If x is a value then are the following just syntactically different but effectively the same? Is the second a shortcut for the first?
Convert.ToInt32(x);
(int)x;
Or can one be used in some circumstances over and above the other?
Looking in MSDN it seems that the first is doing something different to the second.
(int)is explicit cast whereConvert.ToIntis methodConsider:
Casting works for compatible types:
You may see Explicit cast – MSDN