As long as I know, there are 2 type of syntax to cast in Typescript.
const a = <A>b;
const a = b as A;
As described here
Originally the syntax that was added was
However there is an ambiguity in the language grammar when using
<foo>style assertions in JSX:
var foo = <string>bar; </string>
Therefore it is now recommended that you just use
as foofor consistency.