Automatic type conversion to/from external JavaScript.