Skip to main content

Typecasting

Vasyl MartyniukLess than 1 minute

Syntax

(*<type>)${...}
(*<type>)<static value>

Definition

Type casting is the way to convert a value to a chosen type by writing the asterisk * and a type within parentheses before the value to convert. It is a helpful utility to ensure the correct values for critical parts of a policy like conditions.

AAM access policy comes with several predefined types like ip, float, and array. However, you can introduce custom typecasts with the aam_marker_typecast_filter filter.

Virtual Assistant