XF 1.2 Importing from other forums

How difficult is it to import members/ posts from other forums into my forum?

For example, if I decided to buy existing forums and merge everything into my current database - either from another Xenforo, or more likely - from other software packages such as vbulletin and PHPbb?