I wonder if it is possible to determine the type of an object in typescript. Please consider the example below:

```
type T = [number, boolean];

class B {
    foo: T = [3, true];

    bar(): boolean {
        return this.foo instanceof T;
    }
}

```

The typeof operator does not seem to be a solution, neither does instanceof.