Fix enum type conversion warning
Merge pull request #124 from denivip/fix-warning

Fix enum type conversion warning