Why not simple make it a boolean casting BUT allow to define a list of possible true/false values. Such a list isn't localization because it's not required to translate something and you can define something like no/yes - true/false - on/off etc.
(An own filter for a simple cast is very heavy - not required)