explicit type checking of parameter that was raising an exception

PREINDEX REQUIRED