use MooseX::Declare; class Foo { use Foo::Types::Library qw /GooglePrimaryEmail/; has 'email' => ( is => 'rw', isa => GooglePrimaryEmail, coerce => 1 ); }