Just use metricDetail.metric
Supports switching weight from double to integer and back without loss (unless one edits presented values of course).