Some basic type checking for coffeescript (at runtime)