A robust TypeScript utility to convert strings to boolean values with extensive options and type safety