Nikolay Sivov : d3d10/effect: Get rid of interface pointer casts in IsValid().