As you have it myvar is only 2 bits wide.
If you want two integers you need myvar[2];