Added fix for cast conversion to prevent constructor calls from triggering a false positive