I'm using the the following code to cast a double to an enum.
But VS 2005 throws:Code:(Density::KernelType)(GetScalar(pqrs))
error C2440: 'type cast' : cannot convert from 'double' to 'Density::KernelType'
Conversions between enumeration and floating point values are no longer allowed
But I need this cast badly. Any ways to force this coversion.