Skip to contents

Convert an object into a specific type

Usage

as_type(x, type)

Arguments

x

an object to convert

type

the targeted type