Specific `fold` implementation instead of implicit conversion through its companion object.