Make sure type are matching when doing comparision