Fix for the default `asInstanceOf` virtualization.