Nice - that's pretty cool. Maybe share this code with the function that deserializes a BigDecimal?