How to use the mask option when calling raycast method?

The following is the API doc for the “raycast” method for 2D objects:

public raycast (p1 : IVec2Like, p2 : IVec2Like, type ?: ERaycast2DType, mask ?: number)

Raycast API Ref

The documentation doesn’t say anything about “mask” and how to use it. Can I use this mask parameter to ignore certain physics groups during the raycast process?

Thanks