On Mon, Jul 7, 2025, at 11:54, Claude Pache wrote: > Hi, > > There is already a built-in function for that very purpose, namely > `settype()`, see: > > https://www.php.net/settype > > > —Claude
Thanks, Claude. Over twenty years of PHP development and I didn't know that function exists (or I forgot about it). TIL! Still, this function seems clunkier than a straight cast would be.