It might be caused by too much exposure to Java, but wouldn't using == yield a reference comparison?
Am I missing something?