C# LanguageCasting

Download C# Language for free

Remarks

Casting is not the same as Converting. It is possible to convert the string value "-1" to an integer value (-1), but this must be done through library methods like Convert.ToInt32() or Int32.Parse(). It cannot be done using casting syntax directly.

Related Examples

Cast an object to a base type