List-casting indices for hyperopt