Fixed typo -> Type.typeOf should have been Type.typeof