Magnesium alloy embedded parts