Converts the given reified type T to an ArgumentType. Note that this function fails if there is no corresponding ArgumentType mapped to T.