Cast variables in user model