Cast IUser to Account in Java Action

1
I got the current user in the session from context as follows: context.getSession().getUser() which return IUser Object I want to cast the IUser to the Account object to get the full name. How?
asked
1 answers
9
IUser user = this.getContext().getSession().getUser();
Account account = Account.initialize(this.getContext(), user.getMendixObject());
answered