lib: coerce values using new util methods