Simplify conversion to np.float for input list