method in params safearray check and convert