Repurposing a headboard

I'm wanting to repurpose my waterbed headboard into a side cupboard. Any ideas on how to do this?