matches

open infix fun Any.matches(other: Any): Boolean