code: func (m MetricType) resolveFloat(val interface{}) interface{} {
  	_, isFloat64 := val.(float64)
  	if isFloat64 && m == FloatType {
  		return float32(val.(float64))
  	}
  
  	return val
  }
docs: // resolveFloat will resolve a float64 to one of the 2 compatible types.