Turn an outline into a shape using Object > Expand or Object > Expand Appearance. You will be given options to expand the Fill, the Stroke, or both the Fill and Stroke.