Using the following code, one gets the $X$ vertically aligned with the "center" of the cases. Is there a way to vertically align the $X$ with the $0$ in this output?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
X=
\begin{cases}
0, & \text{if}\ a=1 \\
1, & \text{otherwise}
\end{cases}
\end{equation}
\end{document}



tikzorpstrickpackages ... and as all answer says: don't doing this, result is ugly. – Zarko Aug 26 '16 at 20:07