Fix bug in distances array casting.
Fix bug in distances array casting.

scikit-learn-contrib/hdbscan,c-north/hdbscan,lmcinnes/hdbscan,brunoalano/hdbscan,scikit-learn-contrib/hdbscan,brunoalano/hdbscan,lmcinnes/hdbscan