removed obsolete asType method