If you are getting following error while posting back data in MVC Unable to cast object of type 'System.Int32' to type 'System.String'. Check for the validation attributes on the number data types. If you have a StringLength attribute on a numeric datatype, MVC autobinding converts the field to a string and causes above error while autobinding. Instead use RegularExpression to limit numbers in a numeric field.
Sharing the unusual problems and solutions while developing applications using .Net. and AWS