web3-eth-accountsFunctionstoTypetoType CallabletoType<T>(input: null, outputType: T): nulltoType<T>(input: undefined, outputType: T): undefinedtoType<T>(input: ToBytesInputTypes, outputType: T): TypeOutputReturnType[T]Convert an input to a specified type. Input of null/undefined returns null/undefined regardless of the output type.Type parametersT: TypeOutputParametersinput: nullvalue to convertoutputType: Ttype to outputReturns null
Convert an input to a specified type. Input of null/undefined returns null/undefined regardless of the output type.