I am trying to assert in a function if an object is instance of a class with type predicate.
function assertClass any