It could be used by ORMs like Laravel Eloquent Model that has cast and other hooks to transform data on get/set.
This would be really useful if this hooks could be added externally. So we can use attributes to add generic validation or transformation hooks.