``` when (obj) { is Rectangle -> {} is ...
# getting-started
m
Copy code
when (obj) {
    is Rectangle -> {}
    is Circle -> {}
}