smarter type conversion (STMT_EXEC)