Switch to normal equality operators and let JS do the casting.