try
{
    throw new InvalidCastException();
}
catch (InvalidCastException e) when (e.Data != null)
{
    throw;
}
