Removed threads as they were not needed to illustrate the ClassCastException.