I can't seem to figure out a fix for the ClassCastException that my code throws.