Index: TintEffect.cpp
===================================================================
--- TintEffect.cpp	(revision 16479)
+++ TintEffect.cpp	(working copy)
@@ -49,6 +49,7 @@
     auto OnColorChanged = [](DependencyObject* o, const DependencyPropertyChangedEventArgs& args)
     {
         TintEffect* this_ = DynamicCast<TintEffect*>(o);
+        if (this_ != nullptr)
         {
             this_->mConstants.color = args.NewValue<Color>();
             this_->InvalidateConstantBuffer();
