I'm studying how to use the FIs and the lambda expressions and I was wondering if I could compare two objects but of a different type such as an Integer object and a String object. I've seen them, sometimes, being used interchangeably like a Char becoming and Integer or a CharSequence becoming a String. That made me think about comparing them since they all come from the Object superclass.
Thank you.