Skip to content

swift_dynamicCastClass(____)

0x41c edited this page Feb 28, 2022 · 1 revision

swift_dynamicCastClass(_:_:)

Checked dynamic cast to a Swift class type.

@_silgen_name("swift_dynamicCastClass")
public func swift_dynamicCastClass(
    _ object: UnsafeRawPointer,
    _ targetType: AnyObject.Type
) -> UnsafeRawPointer?

Parameters

  • object: The class object to cast.
  • targetType: The type to cast the class to.

Returns

The object of the cast succeeds, or null otherwise.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally