Scala isinstanceof

x.isInstanceOf[Foo]
QuackAttack69