This is explained at the Spiral Knights wiki page "Energy". The wiki holds a wealth of information.
Crystal energy (CE) and mist energy (ME) are interchangeable for all game functions: elevators, crafting, buying things that cost energy, opening extra treasure rooms and danger rooms, etc. The only difference between the two is:
* You automatically gain 1 ME every 13 minutes or so, unless you already have 100 ME. (You can never have more than 100 ME.)
* You cannot trade ME with another player.