%identity is used with external to do an unsafe conversion of a value from one type to another type.
%identity
external
external convertToFloat: int => float = "%identity" let age = 10 let gpa = 2.1 +. convertToFloat(age)
Type Escape Hatch
Dangerous Type Cast
Extension Point Attributes