javascript type casting code example
Example 1: type explicit conversion js
Number("3.14") // returns 3.14
false.toString() // returns "false"
String(false) // returns "false"
Example 2: casting in javascript
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript(Script,Arguments);