> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/default-operators/instance-of.md).

# Instance-of

## Syntax

```swift
obj is Foo
```

## Explanation

Returns if the left operand is an instance of the right operand. If an object is an instanceof a class's superclass, this operator will return true for the superclass.

## Examples

```swift
// Where: Dog IS-A Animal
let o := Dog { ... }
o is Animal
```
