This method is clearly going to produce a classcastException if it's ever invoked. I guess it never is as I'm not aware of any problem in this area?
Flagging as minor severity as it's unknown.