You Are Lying to Your Compiler. Use "satisfies" Instead of "as".

· Dev.to