downcasting js

JavaScript
        
            
        
let a: typeA;
let b = a as typeB;

Source

Also in JavaScript: