fixed compile error I was supposed to be fixing a class cast exception just go with a warning for now.