Change metric's type