How old are you stinkynuts?
Do you have any RRSP contribution room?
You could always contribute a substantial amount of it into an RRSP, assuming you have contribution room, then convert it to a RIF, and what you withdraw is considered income. It will show up on your T4-RIF. When you contribute it to the RRSP capital gains will be deemed taken.
In addition, don't confuse withdraw with sell. You could transfer the assets in-kind back to a non-registered account (i.e. still keep them as is) but the movement itself counts as a withdrawal. You will have to pay tax on the withdrawal, but the contribution you made can offset that.
I think that that would work, unless you don't have any substantial contribution room. Could be wrong though, an expert tax person would need to analyse this idea.