value comparison vs. type compare