```scala import scala.util.control.Exception.* extension (s: String) def toBigDecimal: BigDecimal = BigDecimal(s) def toBigDecimalOption: Option[BigDecimal] = catching(classOf[NumberFormatException]).opt(toBigDecimal) ``` I can make a PR if this is something that would be accepted.