How can I cast a given object to a type and a protocol in order to call some methods that are defined as an extension

For Example:

```
extension Identifiable where Self: NSManagedObject, Self: JsonParseDescriptor {
    func someMethod() { }
}

```

Now I have an object that I retrieved from Core data and I would like to cast it to the above protocols in order to call someMethod on it. I could cast to the protocols using `protocol<Identifiable, JsonParseDescriptor>` , but how can I include the NSManagedObejct type in it also?

Thanks