O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Typecasting and Boxing Value Types

In many cases, you’ll need to convert variables of one type into different types. This process is called Typecasting (as in giving it a role to play), and it includes:

  • The physical conversion of a concrete value into another type—data is processed, analyzed, and saved at a different location.

  • Assigning an object variable to a different object variable of a different but derived type (a type that’s based on the first variable’s class). For example, an object variable of the parent class FirstClass can be set to reference ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required