instance of in kotlin code example Example: kotlin instanceof if (myInstance is String) { // DO SOMETHING }