Fix shadows: This .value<EnumType>() cast always returns 0 no matter what the QVariant value is. This broke all shadows. Don't use this cast on enums (we shipped a release with broken shadows due to this mishap) :(