Changing a symbolic variable into a numerical variable with double function requires that the value of the symbolic variable can be converted, but in your example, X has no assignment. How to convert?
It's okay to use vpa function, but the result should still be X.