Advertisement
libdo

Untitled

Sep 26th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum testEnum: String {
  2. case Test
  3. }
  4.  
  5. let myObject: AnyHashable = testEnum.Test as AnyHashable
  6. let newObject = myObject as? testEnum
  7.  
  8. let newObject = (myObject as? AnyObject) as? testEnum
  9.  
  10. let myObject: AnyHashable = "Test" as AnyHashable
  11. let newObject = myObject as? String
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement