unity how to check serialized enum

Code Example - unity how to check serialized enum

                
                        int index = Array.IndexOf(Enum.GetValues(typeof(AnimatorControllerParameterType)), AnimatorControllerParameterType.Bool);