python如何将Integer转换成int形式?

问题遇到的现象和发生背景

在做神经网络建模时,考虑超参数优化后遇到这个问题。
超参数调节后的数据格式为Integer,而建模过程中的数据是int

问题相关代码,请勿粘贴截图
n_neurons = Integer(low=1, high=5, name='n_neurons')
运行结果及报错内容

TypeError: '<' not supported between instances of 'Integer' and 'int'

我的解答思路和尝试过的方法

将所有数据格式都该为int

我想要达到的结果

python如何将Integer转换成int形式?

Integer i;
int k=i.intValue();