Joose, the javascript meta object system inspired by Moose recently released version 2.0 of their framework adding support for offical support for types/sub types as well as coercisons. There are also a bunch of other changes, read on at the original announcement. You can also check out the project homepage.