Simple type narrowing/type guard/assertion (?) - Deno