Added get-function for individual passes

Template function, that returns the pass with provided index, casted as
requested type. No safety here, really.