Create a managed object with Swift

Adding an @objc annotation to the Managed Object subclass fixes the crash.