# GHPython Type Casting

**URL:** <https://discourse.mcneel.com/t/ghpython-type-casting/141705>\
**Category:** Grasshopper\
**Tags:** windows, mac, python, rhino7\
**Created:** [April 26, 2022, 4:16pm UTC](https://discourse.mcneel.com/t/ghpython-type-casting/141705 "2022-04-26T16:16:16Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [April 28, 2022, 8:04am UTC](https://discourse.mcneel.com/t/ghpython-type-casting/141705/7 "2022-04-28T08:04:00Z")

</div>

> [@Hamilton\_Forsythe](#):
>
> … so would be possible to leverage all the useful functions and tools in both libraries.

You’re not missing out by “only” using RhinoCommon. `rhinoscriptsyntax` is simply a wrapper around RhinoCommon functionality. You can inspect its source code to learn which RhinoCommon classes/methods it implements:

> [@Reparametrize geometry python](https://discourse.mcneel.com/t/reparametrize-geometry-python/100057/8):
>
> It might also be worth mentioning that the rhinoscriptsyntax Python package is located here: C:\Users\USERNAME\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript Where you can browse through the .py files and learn how RhinoCommon has been implemented: I like to use Sublime Text for this. Where I add the rhinoscript folder (under Project \> Add Folder to Project), which allows you to sear…

> [@Reparametrize geometry python](https://discourse.mcneel.com/t/reparametrize-geometry-python/100057/14):
>
> You can also simply call inspect.getsource() while you’re developing: Edit: A downside to this (and the utility posted above) is that you don’t get the import statements included in the .py module file, which you would by directly inspecting the .py file. Thereby breaking the breadcrumb trail of where functions come from.

---

_[View the full topic](https://discourse.mcneel.com/t/ghpython-type-casting/141705)._
