Take control of the data in your applications, knowing when to apply the correct technique to change data types as needed.
Learning objectives
- Use the casting operator to cast a value into a different data type.
- Use conversion methods to convert a value into a different data type.
- Guard against the loss of data when performing a cast or conversion operation.
- Use the TryParse() method to safely convert a string into a numeric data type.
Leave a Reply