The name may need to be a bit less generic to avoid conflicts with other systems wanting to stringify a value.

and shouldn't it be a filter instead according to the Twig semantic ?