Impl for getType()