Interesting. You state that Casey Jones should divert the train, yet this will cause the death of the person trapped on the railway siding. This seems to be inconsistent with your belief that it is always wrong to cause another person's death. It is somewhat perplexing that you responded this way, since you do not believe that this course of action is necessiated by any general moral requirement to maximise the happiness of the greatest number of people. More of this later. For now, let's see what you make of the scenario below.
Choosing to let 1 person die so that 5 can live does not mean I find that action moral. It's simply the better of two options.