def to_foreign(self, obj, name, value):
		"""Transform to a MongoDB-safe value."""
		
		if isinstance(value, Iterable) and not isinstance(value, Mapping):
			return self.List(super(Array, self).to_foreign(obj, name, i) for i in value)
		
		return super(Array, self).to_foreign(obj, name, value)
Transform to a MongoDB-safe value.