INTERNAL:
TimesTen and requires cast around parameter markers if both operands of certain
operators are parameter markers
This method generates CAST for parameter markers whose type is correctly
identified by the query compiler.
This is not used by default, only if isCastRequired is set to true,
by default dynamic SQL is used to avoid the issue in only the required cases.