Sep 12, 2023
I frequently find myself needing String(), Number(), and Boolean() in JavaScript. In TypeScript, the as keyword is great for coercing a known data type following data fetching. I do try to avoid the built-in coercion ("string" + 3) in JavaScript.