(char)myint;
for example:
Console.WriteLine("(char)122 is {0}", (char)122);
yields:
(char)122 is z
More Related Contents:
- Get int value from enum in C#
- Casting vs using the ‘as’ keyword in the CLR
- Direct casting vs ‘as’ operator?
- String was not recognized as a valid DateTime ” format dd/MM/yyyy”
- Shorter syntax for casting from a List to a List?
- C# “as” cast vs classic cast [duplicate]
- Why does “int[] is uint[] == true” in C#
- How do I cast int to enum in C#?
- covariance in c#
- How do I provide custom cast support for my class?
- Convert base class to derived class [duplicate]
- convert double to int
- Why enums require an explicit cast to int type?
- Cast class into another class or convert class to another
- Cast LINQ result to ObservableCollection
- c# Creating an unknown generic type at runtime
- In C#, is it possible to cast a List to List?
- Casting vs Converting an object toString, when object really is a string
- Why should casting be avoided? [closed]
- Why can’t I cast from a List to List?
- Why can’t Double be implicitly cast to Decimal
- Why Enumerable.Cast raises an InvalidCastException?
- What is the difference between casting and conversion? [duplicate]
- Cast Int to Generic Enum in C#
- Casting object to int throws InvalidCastException in C#
- C# params object[] strange behavior
- C# – Issues with boxing / unboxing / typecasting ints. I don’t understand
- Explicit/implicit cast operator fails when using LINQ’s .Cast() operator
- Why is a cast required for byte subtraction in C#? [duplicate]
- User-defined conversion operator from base class