The 'is' condition isn't correct for such comparison in common case because it processes correctly only built-in types.