Add from_numeric method.