Changing shader for runtime loaded model

Is there any way to change the shader of a material at runtime?

Currently, it seems like I need to have an editor-defined master material of the correct shader then copy the loaded material’s parameters over to a clone of the master material.