Update WifiManager.java

Removed unnecessary cast.