Inserts a TypeScript type assertion and surrounds with parentheses if needed.
Available only in TypeScript.

Type assertion is in prefix form, except for TSX files, where an 'as'-expression is inserted instead.