scala isinstanceof

x.isInstanceOf[Foo]
QuackAttack69