scala issinstance of

x.isInstanceOf[Foo]
QuackAttack69