You can remember the meaning of 当作 with this easy mnemonic:
I will treat your plan to be (当) an astronaut as a joke. You can't make (作) it when you are so unfit.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.