How to get the inclination of surface

Hello everyone!
I would like to ask you a question:
how can I get the inclination of surface of a 3D model using raycast?

My current code is the following:

function Update () {

var hit : RaycastHit;

var fwd = transform.TransformDirection (Vector3.forward);

if (Physics.Raycast (transform.position, fwd, 10)) {

	print ("There is something in front of the object!");

}

thanks in advance!

Use the variant of Raycast which fills out a RaycastHit structure. The RaycastHit includes the normal of the surface where the ray hit it.