check if cast belongs to course