Hi,
Have a look into checks.
you should likely set your .setcheck to a string you're looking for e.g. "text", it can be an array e.g. ["text", "Boolean", "Number"]
and then set the output of your second block to something not covered in that string.
Types can be literally anything but there are a few default ones blockly uses so don't be too creative.
Best,
Jonty