This works around https://github.com/angular/angular-cli/issues/28271.
@typescript-eslint/no-unnecessary-type-assertion