Removed some unneeded casts in User model