my boy @ 1yo still does that! yes there r a few ways to wean e latching to sleep but sometimes i think it depends on e baby too. some of my frens' babies are so nice they accept whatever is done to them! but mine... hmmm @_@
my fren said she will read a storybook to bb first, then switch off lights, then drink milk bottle, then let bb just play/roll on e bed by himself (she will just keep quiet & dont entertain him). after some time, bb will be tired & roll himself to sleep. she will then transfer bb to his cot. he took to it by e 2nd or 3rd day
that said, ya it will take some time to wean. e main thing is to just persevere despite all e crying!