25.7.3 The isa Operator

The binary operator isa allows you to check for the type of a given value:

(poke) 10 isa int
1
(poke) "foo" isa string
1
(poke) (Packet  0#B) isa Packet
1
(poke) 2 as int<3> isa uint<4>
0