title: How to create an instance of a principal class from a loadable bundle in swift
body: <p>I need to create an instance of a principal class from a loadable bundle in swift. All I know about the class is that it conforms to a specific protocol (NOT @objc protocol) and it is NOT a subclass of NSObject. Is this possible at all?</p>
  
  <p>It was so simple in Obj-C with NSObject, because really, obj-c doesn't care about types, but this swift, oh man, the principalClass property of NSBundle returns AnyClass?, how is it possible on Earth to create an instance of that AnyClass? type and tell it that now it conforms to a swift protocol?</p>
  
  <p>thanks in advance</p>