Avoiding casts in TypeScript when filtering an array to not null and not undefined February 22, 2019 TypeScript +