---
title: Type Casting and Existential Types
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/type-casting-and-existential-types
---

# Type Casting and Existential Types

Perform casts between types or represent values of any type.

## Topics

### Integer Value Casting

- [numericCast(_:)](swift/numericcast(_:).md)

### Closure Casting

- [withoutActuallyEscaping(_:do:)](swift/withoutactuallyescaping(_:do:).md)

### Instance Casting

- [unsafeDowncast(_:to:)](swift/unsafedowncast(_:to:).md)
- [unsafeBitCast(_:to:)](swift/unsafebitcast(_:to:).md)

### Existential Types

- [AnyObject](swift/anyobject.md)
- [AnyClass](swift/anyclass.md)

### Comparing Identity

- [===(_:_:)](swift/===(_:_:).md)
- [!==(_:_:)](swift/!==(_:_:).md)

### Void Type

- [Void](swift/void.md)

## See Also

### Programming Tasks

- [Input and Output](swift/input-and-output.md)
- [Debugging and Reflection](swift/debugging-and-reflection.md)
- [Macros](swift/macros.md)
- [Concurrency](swift/concurrency.md)
- [Key-Path Expressions](swift/key-path-expressions.md)
- [Manual Memory Management](swift/manual-memory-management.md)
- [C Interoperability](swift/c-interoperability.md)
- [Operator Declarations](swift/operator-declarations.md)
