It's a very interesting verb, especially for the English native speakers, because it came from another verb "кастить" (the first meaning is "to soil/dirty"). Possibly, it's close to the English verb "to cuss", because it has the same root (cuss = кас). "Касть" is an ancient word, it means "filth, garbage etc".