Use a better method for type comparison

Now use a WellKnownTypes as FxCop project does