semantic: Support class to interface after struct switch.