setbased/helper-cast (packagist): Safely cast mixed values to bool, float, int, or string
Keywords: cast|safely|mixed-type