Original: If made of suitable material, some underwear can serve as nightwear or swimsuits.
Simplified: If made of suitable fabric, some types of underwear can serve as nightwear or swimsuits.