FromBool converts the given boolean in to a pb.TaskValue object.
FromInt converts the given int value into a pb.TaskValue object.
ToBool converts the given pb.TaskValue object into a boolean.
ToInt converts the given pb.TaskValue object into an integer.