Can I convert a shape's stroke to a line?

I have a custom shape with which I’m only using the stroke, however I need a section of it chopped out with transparency. None of the combine shape options seem to give me what I need. Is there a way to convert a shape’s stroke to a line?