# Extension of a generic Objective-C class cannot access the class's generic parameters at runtime

**URL:** <https://forums.swift.org/t/extension-of-a-generic-objective-c-class-cannot-access-the-classs-generic-parameters-at-runtime/26680>\
**Category:** Core Libraries\
**Created:** [July 7, 2019, 1:56am UTC](https://forums.swift.org/t/extension-of-a-generic-objective-c-class-cannot-access-the-classs-generic-parameters-at-runtime/26680 "2019-07-07T01:56:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davelee](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@davelee](https://forums.swift.org/u/davelee)\
**Post date:** [July 7, 2019, 1:56am UTC](https://forums.swift.org/t/extension-of-a-generic-objective-c-class-cannot-access-the-classs-generic-parameters-at-runtime/26680/1 "2019-07-07T01:56:44Z")

</div>

I'm attempting to extend NSFetchRequest to conform to a more abstract protocol, as shown below. But doing so results in the error "Extension of a generic Objective-C class cannot access the class's generic parameters at runtime".

I realize that the Core Data is an Objective-C library, and that NSFetchRequest is generic, but I don't understand how to work around this error. I'm running Xcode 10.2 & Swift 4.2.

```
import Foundation
import CoreData

protocol Request {
    var from: String? {get}
}

extension NSFetchRequest: Request {
    var from: String? {
        get {
            return self.entityName
        }
    }
}

```
