When I do some bindings, many times I end up wih someting like the folowing: proc IsNormal*(this: gp_Vec, Other: gp_Vec, AngularTolerance: cdouble): bool {.importcpp: "IsNormal".} Run
What I do afterwards is to wrap it again like this: proc isNormal*(this: gp_Vec, Other: gp_Vec, AngularTolerance: float): bool = IsNormal(this, Other, AngularTolerance.cdouble) Run I reuse most of the types, and I only replace `cdouble` (or equivalent) by `float` (or equivalent). Most of the code is repetitive. How could I simplify this or is there something that I am doing wrong? It would be nice something like: proc isNormal*(this: gp_Vec, other: gp_Vec, angularTolerance: float): bool {.importcpp: "IsNormal", convert[AngularTolerance]:cdouble.} Run But I don't know if this is feasible or if it makes sense at all.