method in params safearray check and convert
raising TypeError on bad input
raising TypeError on bad input