What does `as` do when used as a statement? ``` ...
# getting-started
d
What does
as
do when used as a statement?
Copy code
override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other?.javaClass != javaClass) return false

        other as EntityNotFoundException

        if (entityId != other.entityId) return false
        if (entityType != other.entityType) return false

        return true
    }