When you invoke a method from the assembly generated by Builder NE, you can pass most native .NET type directly which will map to the equivalent MATLAB type.
If for some reason this not working for you, you can explicitly create an instance of one of the derived MWArray
classes that wrap internal MATLAB types.
For example:
string name = "Amro";
obj.greet(name);
Assuming obj.greet
is the interface for a compiled MATLAB function that receives a string. Otherwise you can explicitly write:
obj.greet(new MWCharArray(name));