protected function toGUID($entity = null) {
		if ($entity instanceof ElggEntity) {
			return (int) $entity->getGUID();
		} else if ($this->exists($entity)) {
			return (int) $entity;
		}
		return false;
	}