| 
  | 
| Upcasting and downcasting in C# | 
Upcasting converts an object of a specialized type to a more general type Downcasting converts an object from a general type to a more specialized type  | 
![]()  |  A specialization hierarchy of bank accounts  | 
  |  An illustration of upcasting and downcasting.   |