Fix deprecated functions related to conversion to int and lists