okay just saw that this wont work due to the cast.

However user does not need to be a member here. Local variable should work