getDeclarationAs

fun <T> getDeclarationAs(i: Int, clazz: Class<T>): T