added Type() assertion