Optimized example by caching out the conversion result, thanks @Vjeux.