Help for this page
use Moose::Util::TypeConstraints; ... coerce 'TrueStr', from 'Any', via { $_ || "whatever" }; has foo => (is => "ro", isa => "TrueStr", coerce => 1);