Returns the typed input StateAndRef at the specified index
The StateAndRef
The index into the inputs.