For your @Transform handler to get called you need to enable the global validation pipe.
@Transform
In your main.ts file add the following line to enable transformation:
main.ts
app.useGlobalPipes(new ValidationPipe({ transform: true }))