typeCheckInstanceCastOrThrow

fun <T : CPointed> typeCheckInstanceCastOrThrow(instance: TypeInstance, gType: GType): CPointer<T>

Checks if an instance is of gType, otherwise throws TypeCastException

Throws