fixed issues with casting IPGeolocation