Implicitly converts an integer to a LayerMask.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { // Converts an integer to a layer and prints the layer name.
int i = 0; LayerMask layerMask; layerMask = i; Debug.Log(LayerMask.LayerToName(layerMask)); } }