+ if opt_cast_objects.value then
+ type_map["Byte"] = "Int"
+ type_map["Short"] = "Int"
+ type_map["Integer"] = "Int"
+ type_map["Long"] = "Int"
+ type_map["Character"] = "Char"
+ type_map["Float"] = "Float"
+ type_map["Double"] = "Float"
+ type_map["Boolean"] = "Bool"
+ type_map["CharSequence"] = "JavaString"
+
+ param_cast_map["Byte"] = "(Byte)"
+ param_cast_map["Short"] = "(short)"
+ param_cast_map["Float"] = "(float)"
+ param_cast_map["Integer"] = "(int)"
+
+ # Cast if the type is given as a return value
+ return_cast_map["CharSequence"] = "(String)"
+ end