Blend cream cheese into potatoes. Add egg, onion, pimento, salt and pepper. Bake in 1 quart casserole at 350 degrees for 45 minutes. Serve at once.