func unsafeBitCast<T, U>(_: T, to: U.Type) Returns the bits of x, interpreted as having type U. Warning: Breaks the guarantees of Swift's type system; use with extreme care. There's almost always a better way to do anything. Declaration func unsafeBitCast<T, U>(_ x: T, to: U.Type) -> U
Returns the bits of
x
, interpreted as having typeU
.Warning: Breaks the guarantees of Swift's type system; use with extreme care. There's almost always a better way to do anything.
Declaration
func
unsafeBitCast
<
T
,
U
>
(
_
x
:
T
,
to
:
U
.
Type
) -
>
U