Use inline version of `coerce` to reduce explicit type hints.