pipe
Since there is almost no similarity between the two, other than they are both round and carry drainage, all you have to do is look at them. Clay is red and cast iron is black or rusty brown. Clay breaks if you hit it with a hammer, cast iron breaks if you hit it with a hammer many times in the same place. Clay pipe is seldom smaller than 5 3/4" o.d., cast iron comes in many smaller sizes and is usually at least an inch smaller in o.d. than an equivalent clay pipe. If you cannot tell the difference, then you probably should not be working on it.