Former I'd Do Anything contestant Samantha Barks has been cast as Eponine in the forthcoming film version of Les Miserables.