In NestJS, built-in pipes such as ParseIntPipe and ParseBoolPipe help convert string inputs from HTTP requests into numbers or booleans. When a request comes in, the pipe tries to convert the string parameter. If successful, it passes the converted value to the controller method. If the conversion fails, the pipe throws a BadRequestException, which results in a 400 error response. For example, ParseIntPipe converts '123' to number 123, but throws an error for 'abc'. ParseBoolPipe converts 'true' or 'false' strings to booleans, but throws an error for invalid strings like 'yes'. Using these pipes ensures your controller receives correctly typed data and handles invalid inputs gracefully.