Almost Java collection uses now generics. OpenSimMpls should be updated to use them and remove lot of casting that won't be necessary.