Converts the CDocBuilderValue object to an integer.
builder = docbuilder.CDocBuilder() context = builder.GetContext() globalObj = context.GetGlobal() nGlobal = globalObj.ToInt()