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