How to access number in Enum Property? I want to set sub surf value by reading number from the Enum Property

How do i do that ?

import bpy
def SubSurfSet(self, context):
    print(self.value)
    #bpy.context.object.modifiers["Subsurf"].render_levels = 2

bpy.types.PoseBone.SubSurfEnum = bpy.props.EnumProperty(
            #(identifier, name, description, icon, number)
    items = [('None','No Smooth','','',0), 
             ('Smooth','Smooth','','',1),
             ('Smoother','Smoother','','',2),
             ('Smoothest','Smoothest','','',4)],
    name = "Mask the MESH",
    default = 'None',
    update = SubSurfSet)

bpy.data.objects["Frog rig"].pose.bones["root.dummy"].SubSurfEnum = 'None'
What I would do is design the items of Enum property like this:

items = [('0','No Smooth',''), 
         ('1','Smooth',''),
         ('2','Smoother',''),
         ('4','Smoothest','')]


Then you just need to cast it to int.

bpy.context.object.modifiers["Subsurf"].render_levels = int(self.SubSurfEnum )


When you change this Enum property and the subsurf levels you don't have to change any dictionary.