Improve using of interface Marshaler into function Marshal.