SQL FunctionsConversion FunctionsTRY_CASTOn this pageTRY_CASTConverts a value from one data type to another. Returns NULL on error.See also: CASTSyntaxTRY_CAST( <expr> AS <data_type> )ExamplesSELECT TRY_CAST(1 AS VARCHAR);┌───────────────────────┐│ try_cast(1 as string) │├───────────────────────┤│ 1 │└───────────────────────┘