How to make objref.Edge() return BrepEdge?

I don’t really need to do that, but I thought I’d ask in case it’s something as simple as assigning an attribute to an object.