Returns 0 if parameter is anything else than of type Int32, also supports converting of False to 0 and True to 1.

Namespace:  EPiServer.DataAbstraction
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public static int ToIntZero(
	Object val
)

Parameters

val
Type: System..::.Object

Return Value

See Also