function toLabel($value, $type) {
		if ($value === null) return '';
		if (is_array($value)) 
			return $this->arrayToLabel($value, $type);
		
		switch ($type) {
			case "boolean":
				return $this->labelFromBoolean($value);
			case "number":
				return $this->labelFromNumber($value);
			case "currency":
				return $this->labelFromNumber($value);
			case "string":
				return $this->labelFromString($value);
			case "html":
				return $this->labelFromString($value);
			case "date":
				return $this->labelFromDate($value);
			case "timestamp":
				return $this->labelFromTimestamp($value);
			case "email":
				return $this->labelFromString($value);
			case "time":
				return $this->labelFromTime($value);
			default:
				if ( is_object($value) ) 
					return $this->labelFromObject($value);
				else
					return "$value";
		}
	}