Yes there is one main trick, and some regular skills.
The trick
If you lower the tire pressure, any tire will float over sand like magic. It should not be so underinflated as to allow easy pinch flats, but the lower the pressure, the more marked the floating effect. There are just two limitations:
- If the tire is skinny (low volume), it might not be possible to have a pressure level that allows flotation and safe riding over rough terrain on other trail sections;
- It's not possible to adjust tire pressure "on the fly" ;o) But if you know you're having a long stretch of soft terrain, it's possible to have a good trade-off.
Anyway, huge tires (2.3 +) are perfect for that (watch this Surly Pugsley video). Also, knobby doesn't help that much, sometimes slicks are better; they cause less shearing of the sand and rob you of less kinetic energy.
The skills
Speed
Not so fast as to suddenly throw you over the bars in case of loss of control, not so slow that your rear wheel loses traction in order to maintain or recover speed.
Direction
Plan ahead the smoothest possible trajectory, and point your front wheel firmly along that trajectory. Avoid wobbling on the pedals, major gear changes, and specially avoid sharp turns, because there is a critical steering angle above which the front tire skids sideways and the bike becomes unstable, making it almost impossible to regain control in some cases (of course the more skill one has, the more one can recover from).
Hope that helps and... Practice! Few things can be more fun than that!