class_docstr: Cast actions to a given type.
class_docstr_tok: ["Cast","actions","to","a","given","type","."]
code: def __init__(self, env, type_):
      super().__init__(env)
      self.type_ = type_
  
imports: import argparse
  import functools
  import os
  import gym
  import gym.spaces
  import numpy
  import torch
  from torch import nn
  import pfrl
  from pfrl import experiments, explorers, replay_buffers, utils
  from pfrl.q_functions import DiscreteActionValueHead
label_desc: Use image node_id 1 to create a new CastAction object from inherited base classes: gym with example: obj = CastAction(env, type_)