Coatings for sand molds and cores