If you have an update-center specified with a file:// URL, then this cast fails with a ClassCastException