fixing cast exception. Should have just been an AbstractProject so no casting had to happen.
reformatting.