Please see my comment to the question. You really need to explain what do you want to achieve.
You are using the static method
Read this help page. This method really should not give you non-null value. It will be null if the string does not represent any existing type.
I doubt you really need it.