fix for #asType not returning the loaded Class