Fixig a bug that made an incorrect cast in evaluate_kmeans