Check out example codes for "type casting in typescript". It will help you in understanding the concepts better.

Code Example 1

// Original syntax
var markerSymbolInfo = <MarkerSymbolInfo> symbolInfo;

// Newer additional syntax
var markerSymbolInfo = symbolInfo as MarkerSymbolInfo;

Learn ReactJs, React Native from akashmittal.com