Hello! I am going to make some assumptions. Please correct me if I'm wrong.
Since you are posting on the Network Analyst forum, I will assume that you want to get one of the NAClasses out of an NALayer. For example, you want to open a Closest Facility layer and access the Facilities as a feature class.
You already have a layer as an ILayer. Cast your ILayer as an INALayer.