Merge "Change check cast entrypoint to check instance of"