code: def feature_cast(X, cast_type=None):
      """
      Casts feature data to requeted type
  
      Args:
          X (numpy array): input data
          cast_type (type): type to cast data
      Returns:
          X (numpy array)
      """
      if cast_type is None:
          return X
      else:
          return X.astype(cast_type)
  
imports: import warnings
  import pandas
  import numpy
  from scipy import sparse
  from sklearn.base import BaseEstimator, TransformerMixin
  from sklearn.preprocessing import MultiLabelBinarizer, FunctionTransformer, LabelEncoder, normalize
  from sklearn.feature_extraction.text import HashingVectorizer
  from sklearn import feature_selection
label_desc: Use image node_id 4 for calling a global function with example usage: feature_cast(X, cast_type) and returns: X, X