Typedef optimization