Check the type too for equality