How do you cast an SDE table to IFeatureClassLoad using ArcObjects? I'm getting an error with this attempt below which is not the correct method:
Dim pSDEFeatWksp As IFeatureWorkspace = workspaceFactory.Open(propertySet, 0)
Dim table2 As ITable = pSDEFeatWksp.OpenTable("database.LOADER.tablename")
Dim fclass As IFeatureClass = table2 ' <<< ERROR HERE
Dim FCLoad As IFeatureClassLoad = fclass
FCLoad.LoadOnlyMode = False
ERROR
System.InvalidCastException: Unable to cast COM object of type 'System._ComObject to interface type 'ESRI.ArcGIS.Geodatabase.IFeatureClass'...
I found this example which uses IFeatureClassLoad, however it is not dealing with a SDE.
This question is extending upon a previous question of mine.
Edit SDE table with ArcObjects - continued
Thank you!