A JavaScript type checking/casting library