is_<U> method

bool is_<U>()

This method works the same as is keyword.

Implementation

bool is_<U>() {
  return this is U;
}