I have a method that takes type AnyObject and does some magic on it to turn it into a string. However, I cannot get a Swift enum type to work: