Checks two type parameters for equality.
a type parameter
true if this type parameter is equal to param2, false otherwise