Fixed ClassCastException in setting min,max sctp streams

Fixed #1545.