0c0a72e3ae
This change replaces a `r as T` with `unsafeCast<T>(r)` to avoid unnecessary type checking. It is the responsibility of the native function to return the expected type. See discussion on https://dart-review.googlesource.com/c/sdk/+/218101 TEST=Updated expect file. Change-Id: Ic6f0a642a4ffe60c421b1af1127cc1450dc93eec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218261 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Clement Skau <cskau@google.com>