print(x.runtimeType);
String t = ""; print(t.runtimeType) // String
class Foo {...} main() { var foo = new Foo(); if (foo is Foo) { // Check done here print("it's a foo!"); } }