Check array type for getvalue method