See for example this stackoverflow question.
MYVAR=Hello
A=MYVAR
echo ${!A}
will print Hello. The exceptions are
echo ${!PA*}
will print a (IFS-delimited) list of variables beginning with PA. And
echo ${!name[@]}
will list the array keys for the array variable $name.