type validation adjusted

This one is related with this [issue](https://github.com/yiisoft/yii2/issues/3774) .
I don't think this is meaningful unless there is a need to customize this comparison behavior. This is over coding in my eyes.