Say I have a custom control - TestControl.ascx

if I had code like this on a page

Code:
dim oUserControl as UserControl

oUserControl = LoadControl("TestControl.ascx")
pnlMain.controls.add(oUserControl)
Say TestControl has a public method called test.. I want to be able to go

Code:
CType(oUserControl, TestControl).Test()
however, it doesn't seem like it'll work... any input?