How to check for Enum types in Swift?
<p>I am writing a serializer that can serialize enums and other Swift types (strings, objects, etc.).  So I need to check if an Any parameter passed into my serializer is an Enum or something else.  It seems like the only way to do this in Swift is using reflection.  Does the code below seem reasonable or is there a better way to check for Enum types?</p>

<pre><code>enum Things {
    case Thing1
    case Thing2
}

let something:Any = Things.Thing1
let mirror = Mirror(reflecting: something)
if (mirror.displayStyle == .Enum) {
    print("Reflected type is Enum") // works
}
</code></pre>