Explicit Type Casting

We'll cover the following...

When to use explicit casting

Use explicit casts only in situations where smart casts aren’t possible—that is, when the compiler can’t determine the type with confidence. For example, if a ...