Added missing casts to WebView