checking goodtype equality instead of pointer equality