unsafeBitCast

func unsafeBitCast<T, U>(_: T, _: U.Type)

Returns the the bits of x, interpreted as having type U.

Caution: 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, _: U.Type) -> U