Possible Fix for different java compilers not liking certain casts in the MethodController