Emphasise your strengths
As always with interviews you should be trying to present yourself in the best light possible.
So when it comes to them asking about your 2 year gap don't just say 'Oh I was meeting personal goals' you want to show what you did and amaze them with the transferable skills you learnt.
Transferable skills
For example did you have to communicate a lot with other people? Has this improved your communication abilities? Are you more clear and concise now?
Communication is a skill that is important in every workplace, you will rarely work alone and someone who is able to explain themselves concisely will be a fantastic advantage.
Were you frequently presented with difficult tasks? Did you complete them on time to the best of your abilities?
Showing that you can handle difficult tasks and still give it 100% of your effort shows that you aren't likely to just give up and stop trying if you are presented with difficult tasks whilst working for them. This is definitely a desired quality to have.
Were you presented with conflicts, either in the workplace or with a customer? How did you handle it? Did it go well?
Someone who can remain calm and professional whilst in a conflict of any kind will be a very good trait to have, if you have an example of doing this then definitely bring it to their attention. Someone who isn't going to snap at a client in high pressure situations will be a very valuable person to have.
Conclusion
All in all, as long as you can show what you learnt, and show how this has improved you then I can't see it being too much of an issue.
However, on top of this you might want to make sure you have done some sort of training course or tests to bring yourself up to speed. Things change fast in the IT world and 2 years is actually a fairly long time to be out of it. Your biggest challenge probably won't be the 2 year gap, but will be the lack of current knowledge, so make sure you brush up on all of that too to make sure you aren't at a disadvantage!