Cast wheres to array.