Fixes RT#91966 (deprecated way to call enum warning)
Merge pull request #64 from zoffixznet/fix/RT/91966

Fixes RT#91966 (deprecated way to call enum warning)