How do i pass a class type into a function

You’re in luck. You don’t need to pass in anything! Just define your class globally.

class Foo {
  Foo(){}
}

Foo bar = new Foo();

void run(){
  if( bar instanceof Foo ){
    print( "It's a foo, yes indeed!")
  }
}