Show / Hide Table of Contents

Method CastTo

CastTo(ArcadeExpressionReturnType)

Cast the result of an evaluation to another type using the arcade casting rules.

Declaration
public object CastTo(ArcadeExpressionReturnType type)
Parameters
Type Name Description
ArcadeExpressionReturnType type

The type to cast to.

Returns
Type Description
Object

An object of the requested type or null.

Remarks

Attempts to cast to the required type using the arcade casting rules. Arcade does not throw exceptions when its casting fails, instead it returns a null value, or NaN in the case of casting to a number.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 100.15
In This Article
Back to top Copyright © 2022 Esri.