This may no have been available back then, but now I use two ways of loading users in Joomla.
Method 1: Load any user as an instance of the User class
Loading a user this way will simply store it in the variable and you can then use it for other things. This does not affect the current session and cannot make you login as a user.
$foo = JFactory::...