Can I pass an array as input to a SP?

No.